package com.uzai.console.web.merchant;

import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.uzai.console.dto.login.RegisterDto;
import com.uzai.console.service.merchant.RegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "注册",tags = "注册")
@ApiSort(1)
@RestController
public class RegisterController {

    @Autowired
    private RegisterService registerService;

    @ApiOperation(value = "运营商注册", notes = "运营商注册")
    @PostMapping("/register")
    public Object register(@RequestBody RegisterDto registerDto){
        registerService.register(registerDto);
        return true;
    }
}
